package com.file.system.plugin.dict;

import com.file.system.entity.system.WebDictionary;
import com.file.system.entity.system.WebDictionaryVal;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class DictCacheAspect {


    @Around("@annotation(dictCachePutAnnotation)")
    public Object customMethod(ProceedingJoinPoint joinPoint, DictCache dictCachePutAnnotation) throws Throwable {
        // 调用被拦截的方法
        Object result = joinPoint.proceed();

        return result;
    }
}